package hys.wssoc.modules.info.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import hys.wssoc.modules.info.entity.CountrysideEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author hys
 * @email 2439206957@qq.com
 * @date 2024-03-08 11:46:51
 */
@Mapper
public interface CountrysideDao extends BaseMapper<CountrysideEntity> {
    @Select("select `rs_time`, count(1) as num from `countryside` where province_name=#{provinceName} GROUP BY rs_time")
    List<Map<String, Long>> selectNumByGeo(@Param("provinceName") String provinceName);
	
}
